<!--register Form-->

<form id="register" method="post" action="<?php echo site_url('home/register')?>">
    
    <table border=0 align="center" width="90%">
        <tr>
            <td>Firstname :</td>
            <td><input type="text" name="firstname" value="<?php echo set_value('firstname');?>"></td>
        <td width="50%"><?php echo form_error('firstname');?></td>
        </tr>
        <tr>
            <td width="20%">Lastname :
            <td width="40%"><input type="text" name="lastname" value="<?php echo set_value('lastname');?>"></td>
            <td width="40%"><span class="err"><?php echo form_error('lastname');?></span></td>
        </tr>
        <tr>
            <td width="20%">Email :</td>
            <td width="40%"><input type="text" name="email" value="<?php echo set_value('email');?> "></td>
            <td width="40%"><span class="err"><?php echo form_error('email');?></span></td>
        </tr>
        <tr>
            <td width="20%">Username :</td>
            <td width="40%"><input type="text" name="username" value="<?php echo set_value('username');?>" ></td>
            <td width="40%"><span class="err"><?php echo form_error('username');?></span></td>
        </tr>
        <tr>
            <td width="20%">Password :</td>
            <td width="40%"><input type="password" name="password"></td>
            <td width="40%"><span class="err"><?php echo form_error('password');?></span></td>
        </tr>
        <tr>
            <td width="20%">Confirm-Password :</td>
            <td width="20%"><input type="password" name="confirmpassword"/></td>
            <td width="50%"><span class="err"><?php echo form_error('confirmpassword');?></span></td>
        </tr>
        <tr>
            <td></td>
            <td>
                <input name="register" id="submit1" type="submit" value="Register"/><br/><br/>
            </td>
        </tr>
     </table>              
</form>
